package com.ctg.itrdc.imageconsole.common.exception;

/**
 * 
 * @description: 自定义异常基类
 * @version: v1.0.0 
 * @author: FFSC-CHENSS
 * 
 * Modification History:
 * Date               Author      Version     Description
 * -----------------------------------------------------------------
 * 2016年3月3日 下午4:13:18     FFSC-CHENSS       v1.0.0        create
 *
 */
public class BaseException extends RuntimeException {

	private static final long serialVersionUID = 1L;
/*
	private String exceptionCode;*/

	public BaseException(String msg) {
		super(msg);
	}

	/*public BaseException(String exceptionCode, String msg) {
		super(msg);
		this.setExceptionCode(exceptionCode);
	}*/

	/*public String getMessage() {
		StringBuffer sb = new StringBuffer();
		if (exceptionCode != null) {
			sb.append("错误编码：");
			sb.append(exceptionCode);
		}
		sb.append("  错误描述：");
		sb.append(super.getMessage());
		return sb.toString();
	}*/

	public String toString() {
		return getMessage();
	}

	/*public String getExceptionCode() {

		return exceptionCode;

	}

	public void setExceptionCode(String exceptionCode) {

		this.exceptionCode = exceptionCode;

	}*/
}
